import { S } from '../../s';
import { IPSAppDEXDataView } from './ipsapp-dexdata-view';
import { PSAppDEViewImpl } from './psapp-deview-impl';

export class PSAppDEXDataViewImpl
  extends PSAppDEViewImpl
  implements IPSAppDEXDataView
{
  get xDataControlName(): string {
    return this.M.xDataControlName;
  }

  get enableEditData(): boolean {
    return this.M.enableEditData;
  }

  get enableNewData(): boolean {
    return this.M.enableNewData;
  }

  get enableRemoveData(): boolean {
    return this.M.enableRemoveData;
  }

  get loadDefault(): boolean {
    return this.M.loadDefault != null ? this.M.loadDefault : true;
  }

  get readOnly(): boolean {
    return this.M.readOnly != null ? this.M.readOnly : false;
  }
  get cls(): string {
    return 'PSAppDEXDataViewImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._44 || cls == S._45) return true;
    return super.instanceof(cls);
  }
}
